how to solve friction problems